package com.eco.fanliapp.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.eco.fanliapp.common.response.ServerResponse;
import com.eco.fanliapp.entity.SyUserMoneyLog;

import java.math.BigDecimal;

/**
 * <p>
 * 账户余额日志 服务类
 * </p>
 *
 * @author jobob
 * @since 2019-10-21
 */
public interface ISyUserMoneyLogService extends IService<SyUserMoneyLog> {

    /**
     * 添加账户变更记录
     *
     * @param userid
     * @param amount
     */
    void addSyUserMoneyLog(Long userid, BigDecimal Balance, BigDecimal amount, String remark, Integer logType, Integer logStatus);

	void addSyUserMoneyLogNew(Long userid, BigDecimal Balance, BigDecimal amount, String remark, Integer logType , Integer logStatus,BigDecimal afterBalance);

	void addSyUserMoneyLogNew2(Long userid, BigDecimal Balance, BigDecimal amount, String remark, Integer logType);


	/**
	 * 查询用户账户变更记录
	 * @param currentPage
	 * @param pageSize
	 * @param logType
	 * @return
	 */
	ServerResponse selectUserMoneyLogs(Integer currentPage, Integer pageSize, String searchKey, Integer logType);
}
